﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ServiceModel;

using Infrastructure.Core.Common;
using SMG.Application.DTO.Program;
using SMG.Domain.Model.Program;

namespace SMG.ServiceContract.Program
{
    /// <summary>
    /// 频道服务接口
    /// </summary>
    [ServiceContract]
    public interface IChannelService
    {
        /// <summary>
        /// 根据频道ID获取频道信息
        /// 这里的channelId并非主键id，而是频道ID
        /// </summary>
        /// <param name="channelId"></param>
        /// <returns></returns>
        ChannelDto GetChannelByChannelId(String channelId);

        /// <summary>
        /// 返回所有频道列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<ChannelDto> QueryChannelAll();

        /// <summary>
        /// 获取频道对应的设备列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<DeviceDto> GetDeviceByChannel(String channelId);
    }
}
